

<div class="aw-content-wrap">
    <div class="mod">
        <div class="mod-head">
            <ul class="nav nav-tabs">
                <li class="active"><a href="{:U('Admin/Job/index')}">职位列表</a></li>
                <li><a href="http://127.0.0.1/wenda/?/#add" data-toggle="tab">添加职位</a></li>
            </ul>
        </div>

        <div class="tab-content mod-body">
            <div class="tab-pane active" id="list">
                <div class="table-responsive">
                    <form action="{:U('Admin/Job/jobmodify')}" method="post">
                        <table class="table table-striped">
                            <thead>
                            <tr>
                                <th>ID</th>
                                <th>职位名称</th>
                                <th>操作</th>
                            </tr>
                            </thead>
                            <tbody>
                            <foreach name="job" item="vo" >
                            <tr>
                                <td>{$vo.id}</td>
                                <td>
                                    <div class="row">
                                        <div class="col-sm-12">
                                            <input class="job-title form-control" type="text" name="job_list[{$vo.id}]" value="{$vo.name}">
                                        </div>
                                    </div>
                                </td>
                                <td><a href="{:U('Admin/Job/jobdelete',array('id'=>$vo['id']))}" class="icon icon-trash md-tip" data-toggle="tooltip" title="" data-original-title="删除"></a></td>
                            </tr>
                            </foreach>

                            </tbody>
                            <tfoot>
                            <tr>
                                <td colspan="3">
                                    <input type="submit" value="保存设置" class="btn btn-primary center-block">
                                </td>
                            </tr>
                            </tfoot>
                        </table>

                    </form>
                </div>
            </div>

            <div class="tab-pane" id="add">
                <div class="table-responsive">
                    <form method="post" action="{:U('Admin/Job/jobadd')}" id="new_job_form" class="form-horizontal" role="form">
                        <div class="form-group">
                            <span class="col-sm-2 col-xs-3 control-label">添加新职位:</span>
                            <div class="col-sm-5 col-xs-8">
                                <textarea class="form-control textarea" name="jobs" rows="5"></textarea>

                                <span class="help-block">一行一个职位名称</span>
                            </div>
                        </div>

                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-5 col-xs-8">
                                <!--<button type="submit" class="btn btn-primary">保存设置</button>-->
                                <input type="submit" value="保存设置" class="btn btn-primary center-block">
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
